package com.argticling.model.chanel;

import java.util.List;

import com.argticling.model.Article;
import com.argticling.model.preferences.ArticlePreference;

public abstract class WebChannelManager {
    protected List<ArticlePreference> preferences;
    protected List<Contact> contacts;

    public List<ArticlePreference> getPreferences() {
        return preferences;
    }

    protected abstract void prepareData(Article article);

    protected List<Contact> loadContacts() {
        return contacts;
    }

    protected abstract void sendToContacts(List<Contact> list);

    public void send(Article article) {
        prepareData(article);
        loadContacts();
        sendToContacts(contacts);
    }
}
